package com.stud.system.dto;

import com.google.common.collect.Lists;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @author Stud
 * @title XXXXX
 * @desription XXXXX
 * @data 2022-09-08 15:29
 */
@Schema(description = "区域信息")
@Data
public class AreaDTO {
    private Long id;
    private String areaName;
    private String areaNo;
    private Long parentId;
    private String geoPath;
    private Boolean disabled = false;
    private Boolean live = false;
    private Integer level;
    private Integer num;
    private String areaAlias;
    private String areaFullPath;
    private String weight;
    private String sort;

    /**
     * 父集节点ID,不包含自己
     */
    private List<Long> parentIdList = Lists.newArrayList();

    /**
     * 直系子集节点ID,不包含自己
     */
    private List<Long> childrenIdList = Lists.newArrayList();

    /**
     * 所有子集节点ID,不包含自己
     */
    private List<Long> allChildrenIdList = Lists.newArrayList();
}
